import { get,post } from "./http"
import conf from '../assets/globalConfig.json'
 
var baseUrl = "http://"+conf.baseIp+":"+conf.basePort+"/device/logger/"
 
function postTest(data) {
    let url = baseUrl + 'manager/postTest.do'
    return post(url, data, null)
}
 
function changeAllLogger(param) {
    let url = baseUrl + 'changeAllLogger'
    return get(url,param)
}

function getAllClassName(){
    let url = baseUrl + 'getAllClassName'
    console.log('getAllClassName'+url)
    return get(url,null)
}

function changeLogger(param){
    let url = baseUrl +'changeLogger'
    return get(url,param)
}
 
 
export default {
    postTest,
    changeAllLogger,
    getAllClassName,
    changeLogger
}